import Vue from 'vue'
import Vuex from 'vuex'
import film from './modules/film'
import city from './modules/city'
import center from './modules/center'
import common from './modules/common'

import getters from './getters'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    // 底部菜单是否显示
    isShowFooter: true
  },
  mutations: {
    setIsShowFooter(state, show) {
      // state.isShowFooter = !!show
      state.isShowFooter = show
    }
  },
  getters,
  modules: {
    film,
    city,
    center,
    common
  }
})
